﻿@model List<TidyBlog.Entity.Article>
@{
	Layout = null;
}
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
	<title>@ViewBag.Setup.SiteName</title>
	<link>@ViewBag.Setup.SiteDomain</link>
	<description>@ViewBag.Setup.Description</description>
@if (Model != null)
{
	foreach (var article in Model)
	{
	<item>
		<title>@article.Title</title>
		<link>http://@(ViewBag.Setup.SiteDomain + Url.Action("Detail", "Article", new { id = article.ArticleId }))</link>
		<pubDate>@article.PostTime.AddHours(ViewBag.Setup.TimeZone).ToString("dddd, MMM dd yyyy HH:mm:ss zzz", System.Globalization.CultureInfo.InvariantCulture)</pubDate>
		<description><![CDATA[@Html.Raw(article.Summary)]]></description>
	</item>
	}
}
</channel>
</rss>